#ifndef _CBOLA_H
#define _CBOLA_H

#include "CEntity.h"
#include "CBarra.h"
#include "CBloco.h"
#include "CSound.h"
#include "BolasRestantes.h"
#include "Level.h"

class CBola : public CEntity {

	private:
		bool inGame;

		SDL_Surface* slowBallSurface;
		SDL_Surface* gravityBallSurface;

		void applyEffects();

	public:
		CBola();

		void setInGame(bool ingame); 
		bool checkCollision(float newX, float newY);
		bool checkBrickCollision(float newX, float newY);
		bool isBallLost();

		//Overrided from CEntity
		void onCleanup();
		bool onLoad(char* file);
		bool onLoad(int type, char *file);
		void onLoop();
		void onRender(SDL_Surface* dest);
		void onMove();
};

#endif

